package com.eric.controller;

import com.eric.entity.User;
import com.eric.service.GetUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/getInfo")
public class GetInfoController {
    @Autowired
    private GetUserInfoService getUserInfoService;

    @RequestMapping("/getAllUser")
    public List<User> getAllUserInfo(){
        return getUserInfoService.getAllUserInfo();
    }


}
